<div class="contentArea">
    <div class="Item hr">
        <div class="current">添加广告</div>
        <div class="fr"><a href="{:U('index')}" class="btn">广告列表</a></div>
    </div>
    <form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
            <tr>
                <th width="80">广告名称：</th>
                <td><input name="myad[adname]" id="adname" type="text" class="input" size="30" value="{$adname}" /></td>
            </tr>
            <tr>
                <th width="80">广告标识：</th>
                <td>{$tagname}</td>
            </tr>
            <tr>
            	<th>时间限制：</th>
                <td>
                	<label><input type="radio" name="myad[timeset]" value="0" <eq name="timeset" value="0">checked</eq> /> 永不过期 </label>
                	<label><input type="radio" name="myad[timeset]" value="1" <eq name="timeset" value="1">checked</eq> /> 在设内时间内有效 </label>
                </td>
            </tr>
            <tr>
            	<th>投放时间：</th>
                <td>
                	从<input type="text" name="myad[starttime]" id="starttime" value="{$starttime|getDateStr}" class="input" /><img onclick="javascript:NewCssCal('starttime', 'YYYYMMDD')" style="cursor:pointer; margin-left:2px" src="/Public/admin/js/datepicker/images2/cal.gif">
                     到 <input type="text" name="myad[endtime]" id="endtime" value="{$endtime|getDateStr}" class="input" /><img onclick="javascript:NewCssCal('endtime', 'YYYYMMDD')" style="cursor:pointer; margin-left:2px" src="/Public/admin/js/datepicker/images2/cal.gif">
                </td>
            </tr>
            
        </table>
        <div class="Item hr">
            <div class="current">广告内容</div>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
        	<tr>
            	<td><textarea name="myad[normbody]" rows="5" cols="91">{$normbody}</textarea></td>
            </tr>
        </table>
        <div class="Item hr">
            <div class="current">过期显示内容</div>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
        	<tr>
            	<td><textarea name="myad[expbody]" rows="5" cols="91">{$expbody}</textarea></td>
            </tr>
        </table>
        <input type="hidden" name="myad[aid]" value="{$aid}" />
    </form>
    <div class="commonBtnArea" >
        <button class="btn submit">提交</button>
    </div>
</div>

<include file="Myad/javascript" />
<script type="text/javascript">
$(function(){
    submitForm("update");
});
</script>
